package com.neusoft.neuiotms.dcvm.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.bizcore.web.dto.result.PageResultDTO;
import com.neusoft.neuiotms.dcvm.service.CameraService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api("摄像头管理")
@RestController
@RequestMapping(value = "/api/w/cameras")
public class CameraController {

    @Autowired
    private CameraService cameraService;

    @ApiOperation("分页查询所有模具")
    @GetMapping("/p")
    public PageResultDTO<?> search(HttpServletRequest request) {
        return this.cameraService.search(request);
    }
}
